package bj.yanchao.com.githubdemo;

import android.app.Application;

import bj.yanchao.com.githubdemo.components.AppComponents;
import bj.yanchao.com.githubdemo.components.DaggerAppComponents;
import bj.yanchao.com.githubdemo.modules.AppModule;

/**
 * ${TODO} What the class does
 *
 * @author： yanchao
 * @date： 6/4/16-3:51 PM
 * ${TAGS}
 */
public class MyApplication extends Application {
    AppComponents mAppComponents;
    MyApplication myself;

    @Override
    public void onCreate() {
        super.onCreate();
        myself = this;
        mAppComponents = DaggerAppComponents.builder().appModule(new AppModule(this)).build();
    }
    public AppComponents getAppComponents(){
        return mAppComponents;
    }
}
